Auto merge of #1664 - IvanUkhov:is-dir, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 2 Jun 2015 20:38:40 +0000 (20:38 +0000)
committerbors <bors@rust-lang.org>
Tue, 2 Jun 2015 20:38:40 +0000 (20:38 +0000)
commitbc40ad7b142da1ec17f98cb6f42a0f9e5fcf3904
treeae755698b301965bf65cfb430bd1a9c1fc302113
parente91865c19a92a77e54d0be828e094e6d205f9555
parent632780ebef1044ee110d5cbcdd850d72a92ed55f
Auto merge of #1664 - IvanUkhov:is-dir, r=alexcrichton

The pull request addresses issue #1663. The problem is that `libgit2` [combines][1] `S_IFDIR ` with `S_IFLNK`, and, therefore, the [strict comparison][2] based on `S_ISDIR` rejects directories.

Regards,
Ivan

[1]: https://github.com/libgit2/libgit2/blob/47f37400253210f483d84fb9c2ecf44fb5986849/src/index.c#L308
[2]: https://github.com/rust-lang/cargo/blob/06dbe6555a4a15f5912bbfc841d446dad4d417cc/src/cargo/sources/path.rs#L150